evaluation of arithmetic expression in data structure